package com.cpecc.manager.wuzi;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cpecc.dao.wuzi.CaiGouDao;
import com.cpecc.model.wuzi.CaiGou;
import com.cpecc.model.wuzi.WuZi;

@Service
@Transactional
public class CaiGouManager {

	@Autowired
	private CaiGouDao caiGouDao;
	
	public void save(CaiGou caiGou){
		caiGouDao.save(caiGou);
	}
	
	public CaiGou get(String id){
		return caiGouDao.get(id);
	}
	
	public List<CaiGou> list(WuZi wuZi){
		return caiGouDao.list(wuZi);
	}
	
	public boolean deleteList(WuZi wuZi){
		return caiGouDao.deleteList(wuZi);
	}
}
